package com.handinglian.ai.notice.mapper;

import com.handinglian.ai.notice.entity.KeyGroupDetail;
import java.util.Collection;import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface KeyGroupDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(KeyGroupDetail record);

    int insertOrUpdate(KeyGroupDetail record);

    int insertOrUpdateSelective(KeyGroupDetail record);

    int insertSelective(KeyGroupDetail record);

    KeyGroupDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(KeyGroupDetail record);

    int updateByPrimaryKey(KeyGroupDetail record);

    int updateBatch(List<KeyGroupDetail> list);

    int batchInsert(@Param("list") List<KeyGroupDetail> list);

    List<KeyGroupDetail> findByKeyGroupId(@Param("keyGroupId") Integer keyGroupId);

    int deleteByKeyGroupId(@Param("keyGroupId") Integer keyGroupId);

    int deleteByIdIn(@Param("idCollection") Collection<Integer> idCollection);

    List<KeyGroupDetail> findByNoticeId(@Param("noticeId")Integer noticeId);
}